package com.gufe.controller.admin.allSchool;

import com.gufe.dto.allSchool.PageAllSchoolDTO;
import com.gufe.result.PageResult;
import com.gufe.result.Result;
import com.gufe.service.admin.allSchool.AllSchoolService;
import com.gufe.vo.allSchool.StudentDetailInfoVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/admin/allSchool")
@RestController
@Slf4j
public class AllSchoolController {

    @Autowired
    private AllSchoolService allSchoolService;


    //获取单个学生详细信息
    @GetMapping("/getStudentDetailInfo")
    public Result<StudentDetailInfoVO> getStudentDetailInfo(String studentId){
        return Result.success(allSchoolService.getStudentDetilInfo(studentId));
    }

    //分页查询全校人员数据
    @GetMapping("/getPageAllSchool")
    public Result<PageResult> getPageAllSchool(PageAllSchoolDTO params){
        return Result.success(allSchoolService.getPageAllSchool(params));
    }




}
